package com.example.testcomposeproject

import TimerApp
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.ui.Modifier
import com.example.testcomposeproject.pages.sideEffect.testDisposableEffect.TestDisposableEffectUI
import com.example.testcomposeproject.pages.sideEffect.testProduceState.TestProduceStateUI
import com.example.testcomposeproject.ui.theme.AppTheme
import com.ioidea.base.StatusBarHelper
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            AppTheme {
                Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
                    StatusBarHelper.window = window
                    StatusBarHelper.changeStatusColor(MaterialTheme.colorScheme.primary)

//                    TestComposeCountScreen()
//                    val navController = rememberNavController()
//                    AppNavHost(navController =navController ,modifier = Modifier.fillMaxSize())

                    Box(modifier = Modifier.fillMaxSize().padding(innerPadding)) {
//                        CopyScreen { }
//                        TestEtScreen { }

//                        TestLaunchEffectScreen()
//                        TestRememberUpdateStateScreen()

//                        TimerApp()
//                        TestDisposableEffectUI(onBackPressedDispatcher)

                        TestProduceStateUI()
                    }
                }
            }
        }
    }
}

